Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Specular Color

Labels

ASCII
SpecularColor
Binary
kspc ( = 0x6b737063 )

Data Format

ColorRGB            specularColor
specularColor
A structure having three fields: red, green, blue. The permitted values of these fields are 32-bit floating-point numbers in the closed interval [0, 1], where 0 is the minimum value and 1 is the maximum value.

Data Size

12

Description

Specular color is the color of the light of a specular reflection (specular reflection is the type of reflection that is characteristic of light reflected from a shiny surface). A specular color attribute specifies the color of the light specularly reflected by the objects to which it is assigned. Note that the diffuse color and specular color assigned to the same object can differ.

Parent Hierarchy

Element, attribute.

Parent Objects

Attribute sets. A specular color object always has a parent object.

Child Objects

None.

Example

Container (
    AttributeSet ( )
    DiffuseColor ( .1 .1 .1)            # near-black
    SpecularColor ( 1 1 1 )             # white
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |